# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=libgrilio
pkgver=1.0.39
pkgrel=0
pkgdesc="RIL client library"
url="https://git.sailfishos.org/mer-core/libgrilio"
arch="all !mips64" # failing tests
license="BSD-3-Clause"
makedepends="libglibutil-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sailfishos.org/mer-core/libgrilio/-/archive/$pkgver/libgrilio-$pkgver.tar.gz"
case $CARCH in
	s390x) options="$options !check" # test_io fails
esac

build() {
	make KEEP_SYMBOLS=1 release pkgconfig
}

check() {
	make test
}

package() {
	make install-dev DESTDIR="$pkgdir"
	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="3b1a30cacd6970e168b952a088a544fc1b1a022cea0d056d4b58454f48034443ae40bc8dc3886b289c9431ad53f2ebecc198cf08e876634451e0e58c8784004c  libgrilio-1.0.39.tar.gz"
